package cn.lcsjsxy.yxc.objectoriented.super关键字;

public class Person {
    String name;
    int age;
    int id = 10086;  //身份证号

    public Person() {
    }

    public Person(String name) {
        this.name = name;
    }

    public Person(String name, int age) {
        this(name);
        this.age = age;
    }

    public void eat() {
        System.out.println("吃饭");
    }

    public void walk() {
        System.out.println("走路");
    }
}
